home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / mail / pine3.96.tar.gz / pine3.96.tar / pine3.96 / pine / osdep / sendmail.dos < prev    next >
Text File  |  1996-02-28  |  2KB  |  70 lines

  1. /*----------------------------------------------------------------------
  2.     Routines used to hand off messages to local agents for sending/posting
  3.  
  4.  The two exported routines are:
  5.  
  6.     1) send_handoff()  -- used to pass messages to local transport agent
  7.     2) post_handoff()  -- used to pass messages to local posting agent
  8.  
  9.  ----*/
  10.  
  11. /* ----------------------------------------------------------------------
  12.    Hand off given message to local transport agent
  13.  
  14.   Args: envelope -- The envelope for the BCC and debugging
  15.         header   -- The text of the message header
  16.         errbuf   -- buffer for reporting errors (assumed non-NULL)
  17.  
  18.   Nothing to hand off to under DOS.  Return error.
  19.      
  20.   ----*/
  21. char *
  22. smtp_command(errbuf)
  23.     char    *errbuf;
  24. {
  25.     if(!(ps_global->VAR_SMTP_SERVER && ps_global->VAR_SMTP_SERVER[0]
  26.      && ps_global->VAR_SMTP_SERVER[0][0]))
  27.       strcpy(errbuf,"SMTP-server must be defined!");
  28.  
  29.     return(NULL);
  30. }
  31.  
  32. /*----------------------------------------------------------------------
  33.    Hand off given message to local posting agent
  34.  
  35.   Args: envelope -- The envelope for the BCC and debugging
  36.         header   -- The text of the message header
  37.         errbuf   -- buffer for reporting errors (assumed non-NULL)
  38.  
  39.   Nothing to post locally under DOS.  Return error.
  40.      
  41.    ----*/
  42. int
  43. mta_handoff(header, body, errbuf)
  44.     METAENV *header;
  45.     BODY    *body;
  46.     char    *errbuf;
  47. {
  48.     return(0);
  49. }
  50.  
  51. /*----------------------------------------------------------------------
  52.    Hand off given message to local posting agent
  53.  
  54.   Args: envelope -- The envelope for the BCC and debugging
  55.         header   -- The text of the message header
  56.         errbuf   -- buffer for reporting errors (assumed non-NULL)
  57.  
  58.   Nothing to post locally under DOS.  Return error.
  59.      
  60.    ----*/
  61. char *
  62. post_handoff(header, body, errbuf)
  63.     METAENV *header;
  64.     BODY    *body;
  65.     char    *errbuf;
  66. {
  67.     sprintf(errbuf, "Can't post, NNTP-server must be defined!");
  68.     return(errbuf);
  69. }
  70.